#   (a)
i = 0
while i <= 10:
    print(i)
    i += 1

#   (b)
for i in range(0, 11):
    print(i)
